package com.digital.herbarium.Mapper;

import com.digital.herbarium.Entity.BaseLibrary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface BaseLibraryMapper {

    //    获取基础库列表
    List<BaseLibrary> getBaseLibraryInfo(BaseLibrary baseLibrary);
    //    添加信息
    void addBaseLibrary(BaseLibrary baseLibrary );
    //编辑信息
    void editBaseLibrary(BaseLibrary baseLibrary);
    //删除信息
    void delBaseLibrary(@Param("ids") Long[] id);
    //验证编辑的时候是否已存在该物种
    Integer checkExist(BaseLibrary baseLibrary);

    //批量新增
    void bachAdd(@Param("list") List<BaseLibrary> list);

    List<BaseLibrary> getBaseLibraryTree();

}
